package com.shanshi.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

/**
 * Created by scx on 2017/3/21.
 */

public class ShowImgActivity extends Activity{

    private ImageView img;
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.show_img);

        img = (ImageView) findViewById(R.id.img);
        String uri = getIntent().getStringExtra("uri");
        Glide.with(ShowImgActivity.this).load(uri).centerCrop().into(img);

        img.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }
}
